<template>
    <div>
        <div class="dashboardbox">
            <div class="titbox">历史获奖数据统计</div>
            <div class="box_item" v-if="!(role==18||role==19)">
                <div class="box_item_content">
                    <div class="box_item_content_mun">{{prize_total_money}}</div>
                    <div class="box_item_content_text">总奖金金额</div>
                </div>
                <div class="box_item_content">
                    <div class="box_item_content_mun">{{ prize_zj_money }}</div>
                    <div class="box_item_content_text">已中奖金额</div>
                </div>
                <div class="box_item_content">
                    <div class="box_item_content_mun">{{ prize_sy_money }}</div>
                    <div class="box_item_content_text">剩余金额</div>
                </div>
            </div>
            <div class="echarts_box">
                <v-chart class="dashboard-chart" :option="option" autoresize></v-chart>
            </div>
        </div>
    </div>
</template>

<script>
import { number } from 'echarts';
export default {
    name: "boxfour",
    props: {
        option: {
            type: Object,
            defulat: () => { }
        },
        prize_sy_money: {
        },
        prize_total_money: {
        },
        prize_zj_money: {
        }
    },
    data() {
        return {
            role: localStorage.getItem("role")
        }
    },

    methods: {

    }

};
</script>

<style scoped>
.dashboard-charts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* margin: 20px 0; */
}
.dashboard-chart {
    box-sizing: border-box;
    width: 100%;
    /* min-width: 49%; */
    /* padding: 20px; */
    height: 100%;

    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
    /*  box-shadow: 0px 0px 0px 0px rgba(150, 150, 150, 0.35);
	    box-shadow: 0px 0px 4px 0px rgba(150, 150, 150, 0.35); */
}
.echarts_box {
    height: 100%;
    width: 100%;
}
.dashboardbox {
    /* display: flex;
		align-items: center; */
    width: 96%;
    margin: 0px auto 0 auto;
    height: 28rem;
    /* height: 30rem; */
    /* margin-top: 0.8rem;
		margin-left: 0.6rem;
		padding: 0.6rem 2rem; */
    /* background-image: url("~@/assets/img/46.png");
		background-size: 100% 100%; */
    display: flex;
    flex-direction: column;

    background: #fff;
    /* font-size: 1.6rem; */
    color: #23cefd;
    padding: 10px 0;
    box-sizing: border-box;
}
.titbox {
    width: 24rem;
    height: 2.3rem;
    margin: 0px 0 0 1rem;
    /* background-image: url("~@/assets/image/tit.png");
    background-size: 100% 100%; */
    padding: 0 0.6rem;
    flex-shrink: 0;
    font-size: 1.8rem;
    font-family: Source Han Sans CN;
    font-weight: bold;
    color: #222222;
}

.box_item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.box_item_content {
    width: 14rem;
    height: 100%;
    background: #006bf1;
    border-radius: 4px 4px 4px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 1rem 0;
    margin: 0 1.6rem;
}
.box_item_content_mun {
    font-size: 2.4rem;
    font-family: Source Han Sans CN;
    font-weight: bold;
    color: #ffffff;
    line-height: 1em;
}
.box_item_content_text {
    width: 9.7rem;
    height: 2rem;
    background: #ffffff;
    border-radius: 3px 3px 3px 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-family: Source Han Sans CN;
    font-weight: 500;
    color: #006bf1;
}
</style>
